package com.example.design.adapter.usbtypec;

/**
 * @Description 适配器模式测试类
 * typeC转usb适配器
 * @ClassName AdapterTest
 * @Author Administrator
 * @Date 2020/5/13 12:09
 * @Version 1.0
 */
public class AdapterTest {

    public static void main(String[] args) {
        Phone phone = new Phone();
        Computer computer = new Computer();

        computer.connect(new Adapter(phone));

        computer.showInfo();
    }
}
